/* 修改密码模态框样式 */
.password-change-modal {
    max-width: 500px;
    margin: 0 auto;
}

.personal-center {
    padding: 1rem;
}

.user-info {
    text-align: center;
    padding: 1rem 0;
}

    .user-info .fa-user-circle {
        color: #007bff;
        margin-bottom: 0.5rem;
    }

    .user-info h5 {
        margin-bottom: 0.25rem;
        font-weight: 600;
    }

    .user-info .text-muted {
        font-size: 0.9rem;
        color: #6c757d;
    }

.password-change-section {
    margin-top: 1rem;
}

    .password-change-section h6 {
        font-weight: 600;
        margin-bottom: 1rem;
        color: #495057;
    }

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.input-group {
    position: relative;
}

    .input-group .btn-outline-secondary {
        border-left: none;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .input-group .form-control:focus {
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
        border-color: #80bdff;
    }

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

.form-control.is-invalid {
    border-color: #dc3545;
    padding-right: calc(1.5em + 0.75rem);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.8 3.6.4.4.4-.4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

    .form-control.is-invalid:focus {
        border-color: #dc3545;
        box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
    }

.d-grid .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    transition: all 0.15s ease-in-out;
}

    .d-grid .btn:disabled {
        opacity: 0.65;
        cursor: not-allowed;
    }

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

    .btn-primary:hover {
        background-color: #0056b3;
        border-color: #0056b3;
    }

.btn-success {
    background-color: #28a745;
    border-color: #28a745;
}

    .btn-success:hover {
        background-color: #1e7e34;
        border-color: #1e7e34;
    }

.btn-danger {
    background-color: #dc3545;
    border-color: #dc3545;
}

    .btn-danger:hover {
        background-color: #c82333;
        border-color: #c82333;
    }

.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
}

    .btn-secondary:hover {
        background-color: #545b62;
        border-color: #545b62;
    }

.alert {
    border-radius: 0.375rem;
    padding: 0.75rem 1.25rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

/* 响应式设计 */
@media (max-width: 576px) {
    .personal-center {
        padding: 0.5rem;
    }
    
    .user-info {
        padding: 0.5rem 0;
    }
    
    .password-change-section h6 {
        font-size: 1rem;
    }
    
    .d-grid .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* 动画效果 */
.fa-spinner.fa-spin {
    animation: fa-spin 2s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* 输入框焦点效果增强 */
.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 123, 255, 0.15);
}

/* 按钮悬停效果增强 */
.d-grid .btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 清除按钮样式优化 */
.btn-outline-secondary {
    border-color: #6c757d;
    color: #6c757d;
}

    .btn-outline-secondary:hover {
        background-color: #6c757d;
        border-color: #6c757d;
        color: white;
    }